package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.entity.OrderDetail;
import com.sky.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.ArrayList;

@Mapper
public interface UserOrderMapper {

    void insert(Orders orders);


    void update(Orders orders);

    @Select("select * from orders where id = #{id} ")
    Orders getById(Long id);

    Page<Orders> list(Orders orders);

    @Select("select * from orders where number = #{orderNumber} ")
    Orders getByOrderNumber(String orderNumber);
}
